<script setup>
import { ref } from 'vue'
import ChildComponent from './ChildComponent.vue'

const message = ref('父组件消息')

function handleSubmit(data) {
  console.log('子组件提交的数据:', data)
}
</script>

<template>
  <div>
    <ChildComponent :message="message" @submit="handleSubmit" />
  </div>
</template>